<?php

$db['goods_opinions_image']=array ( 
  'columns' =>
  array (
    'id' =>
    array (
      'type' => 'number',
      'required' => true, 
      'pkey' => true,
      'extra' => 'auto_increment',
      'label' => app::get('b2c')->_('推荐ID'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
        'order' => 1
    ),
    'opinions_id' =>
    array (
      'type' => 'table:goods_opinions',
      'required' => true,
      'label' => app::get('b2c')->_('口碑推荐id'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
        'order' => 2
    ),
    'content' =>
    array (
      'type' => 'varchar(40)',
      'required' => true,
      'label' => app::get('b2c')->_('图片标签内容'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
        'order' => 3
    ),
    'add_x' =>
    array (
      'type' => 'number',
      'default' => '0',
      'label' => app::get('b2c')->_('图片标签x坐标'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
        'order' => 3
    ),
    'add_y' =>
    array (
      'type' => 'number',
      'default' => '0',
      'label' => app::get('b2c')->_('图片标签y坐标'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
        'order' => 4
    ),
    'type' =>
    array (
      'type' => array(
          '1' => app::get('b2c')->_('标签向右'),
          '2' => app::get('b2c')->_('标签向左'),
//          '3' => app::get('b2c')->_('标签向上'),
//          '4' => app::get('b2c')->_('标签向下'),
//          '5' => app::get('b2c')->_('标签向右上'),
//          '6' => app::get('b2c')->_('标签向左上'),
//          '7' => app::get('b2c')->_('标签向左下'),
//          '8' => app::get('b2c')->_('标签向右下'),
      ),
      'required' => true,
      'label' => app::get('b2c')->_('标签方向'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
        'order' => 5
    ),
  ),
  'version' => '$Rev: 413221103 $',
  'comment' => app::get('b2c')->_('商品口碑推荐-图片表'),
);
?>